package com.isoftstone.common.dao;


import com.isoftstone.common.Page;
import com.isoftstone.common.entity.SysDict;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by admin on 16/5/16.
 */
@Repository
public interface SysDictMapper {

    public void saveDict(SysDict sysDict)throws Exception;

    public void updateDict(SysDict sysDict)throws Exception;

    List<SysDict> getSysDictlistPage(Page page) throws Exception ;

    public List<SysDict> getDictBytype(@Param("type") String type) throws  Exception;

    public  SysDict getDictBytypeAndCode(@Param("type") String type, @Param("code") String code) throws  Exception;

    SysDict getDictById(String dictId) throws Exception;

    void deleteDict(String dictId)throws Exception;

    public List<SysDict> getDictBycodeName(@Param("codeName") String codeName) throws  Exception;


    /**
     * 查询工作申请类型
     * @return
     */
    List<SysDict> findJobTypes(@Param("comCode") String comCode) throws Exception;
}